package com.hyjx.framework.uc.menu;

import com.hyjx.framework.orm.IBaseModel;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

/**
 * 菜单实体
 *
 * @author Peter
 */
public class MenuModel implements Serializable, Comparable<MenuModel>, IBaseModel {
    private static final long serialVersionUID = 1L;
    private String menu_code;    //编码
    private String menu_code_full;    //全编码
    private String menu_name;    //名称
    private String menu_desc;    //描述
    private String func_entra;    //功能入口
    private String menu_parent_code;    //父级编码
    private String order_no;        //排序号
    private String is_leaf_node;    //是否末级节点
    private String validity;    //是否有效
    private String levelId;
    private String subsys_id;
    private String iconname;

    private List<MenuModel> children = new ArrayList<MenuModel>();
    private List<MenuFunc> operates;

    public String getMenu_code() {
        return menu_code;
    }

    public void setMenu_code(String menu_code) {
        this.menu_code = menu_code;
    }

    public String getMenu_code_full() {
        return menu_code_full;
    }

    public void setMenu_code_full(String menu_code_full) {
        this.menu_code_full = menu_code_full;
    }

    public String getMenu_name() {
        return menu_name;
    }

    public void setMenu_name(String menu_name) {
        this.menu_name = menu_name;
    }

    public String getMenu_desc() {
        return menu_desc;
    }

    public void setMenu_desc(String menu_desc) {
        this.menu_desc = menu_desc;
    }

    public String getFunc_entra() {
        return func_entra;
    }

    public void setFunc_entra(String func_entra) {
        this.func_entra = func_entra;
    }

    public String getMenu_parent_code() {
        return menu_parent_code;
    }

    public void setMenu_parent_code(String menu_parent_code) {
        this.menu_parent_code = menu_parent_code;
    }

    public String getOrder_no() {
        return order_no;
    }

    public void setOrder_no(String order_no) {
        this.order_no = order_no;
    }

    public String getIs_leaf_node() {
        return is_leaf_node;
    }

    public void setIs_leaf_node(String is_leaf_node) {
        this.is_leaf_node = is_leaf_node;
    }

    public String getValidity() {
        return validity;
    }

    public void setValidity(String validity) {
        this.validity = validity;
    }

    public String getLevelId() {
        return levelId;
    }

    public void setLevelId(String levelId) {
        this.levelId = levelId;
    }

    public String getSubsys_id() {
        return subsys_id;
    }

    public void setSubsys_id(String subsys_id) {
        this.subsys_id = subsys_id;
    }

    public List<MenuModel> getChildren() {
        return children;
    }

    public void setChildren(List<MenuModel> children) {
        this.children = children;
    }

    public List<MenuFunc> getOperates() {
        return operates;
    }

    public void setOperates(List<MenuFunc> operates) {
        this.operates = operates;
    }

    public String getIconname() {
        return iconname;
    }

    public void setIconname(String iconname) {
        this.iconname = iconname;
    }

    @Override
    public int compareTo(MenuModel o) {
        return this.getLevelId().compareTo(o.getLevelId());
    }
    
    @Override
    public String getModuleName() {
        return "com.hyjx.framework.uc.menu";
    }
}